package visualizer.client.bst;

import static visualizer.client.utils.VisualizerUtils.*;

/**
 * User: DDovzhenko
 * Date: 28.12.13
 * Time: 23:06
 */
public class BNode {
    private BNode leftBNode,  rightBNode, parent;
    private Integer value;
    private int size = 1;
    private String innerColor = DEFAULT_INNER_COLOR;
    private String outerColor = DEFAULT_OUTER_COLOR;
    boolean isVisible = true;

    public BNode(Integer value ) {
        this.value= value;
        this.leftBNode = null;
        this.rightBNode = null;
    }

    public Integer getValue() {
        return value;
    }

    public BNode getLeftBNode() {
        return leftBNode;
    }

    public BNode getRightBNode() {
        return rightBNode;
    }

    public void setLeftBNode(BNode leftBNode) {
        this.leftBNode = leftBNode;
    }

    public void setRightBNode(BNode rightBNode) {
        this.rightBNode = rightBNode;
    }

    public String getOuterColor() {
        return outerColor;
    }

    public void setOuterColor(String outerColor) {
        this.outerColor = outerColor;
    }

    public String getInnerColor() {
        return innerColor;
    }

    public void setInnerColor(String innerColor) {
        this.innerColor = innerColor;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public boolean isVisible() {
        return isVisible;
    }

    public void setVisible(boolean visible) {
        isVisible = visible;
    }

    public BNode getParent() {
        return parent;
    }

    public void setParent(BNode parent) {
        this.parent = parent;
    }
}